{% include "header.html" %}
<div id="wrapper">
	<div id="simple-content-wrapper">
		<div id="content">
		<table cellspacing="0" border="0">
		<caption>
		用户组列表
		</caption>
		<tr>
			<td>用户组名称</td>
			<td>该用户组拥有的权限</td>
		</tr>
		{% for x in object_list %}
		<tr class="{% cycle alt,'' %}">
			<td><a href="/group/{{ x.id }}/">{{ x.name|capfirst  }}</a></td>
			{% block user_perm %}
			<td>{% for p in x.permissions.all %}
				<li>{{ p.name|capfirst }}</li>
				{% endfor %}&nbsp;
			</td>
			{% endblock %}
			
		</tr>
		{% endfor %}
		</table>

		<!-- <table cellspacing="0" border="0">
		<caption>
		用户组列表
		</caption>
			<tr>
				<td>用户组名称</td>
			</tr>
			{% for x in object_list %}
			<tr class="{% cycle alt,'' %}">
				<td><a href="/group/{{ x.id }}/">{{ x.name }}</a></td>
			</tr>
			{% endfor %}
		</table> -->
		</div>
	</div>
<!-- 	<div id="sidebar-wrapper">
		
			<div id="sidebar">
				
			</div>
		
	</div> -->
</div>
{% include "footer.html" %}
